package com.ruoyi.system.service.impl;

import java.util.List;

import com.ruoyi.common.annotation.AutoFill;
import com.ruoyi.common.enums.AutoFillType;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.DispatchPipeNetworkMonitoringPointsMapper;
import com.ruoyi.system.domain.DispatchPipeNetworkMonitoringPoints;
import com.ruoyi.system.service.IDispatchPipeNetworkMonitoringPointsService;

/**
 * 管网监测点信息Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-03-02
 */
@Service
public class DispatchPipeNetworkMonitoringPointsServiceImpl implements IDispatchPipeNetworkMonitoringPointsService 
{
    @Autowired
    private DispatchPipeNetworkMonitoringPointsMapper dispatchPipeNetworkMonitoringPointsMapper;

    /**
     * 查询管网监测点信息
     * 
     * @param pipeNetworkMonitoringPointsId 管网监测点信息主键
     * @return 管网监测点信息
     */
    @Override
    public DispatchPipeNetworkMonitoringPoints selectDispatchPipeNetworkMonitoringPointsByPipeNetworkMonitoringPointsId(Long pipeNetworkMonitoringPointsId)
    {
        return dispatchPipeNetworkMonitoringPointsMapper.selectDispatchPipeNetworkMonitoringPointsByPipeNetworkMonitoringPointsId(pipeNetworkMonitoringPointsId);
    }

    /**
     * 查询管网监测点信息列表
     * 
     * @param dispatchPipeNetworkMonitoringPoints 管网监测点信息
     * @return 管网监测点信息
     */
    @Override
    public List<DispatchPipeNetworkMonitoringPoints> selectDispatchPipeNetworkMonitoringPointsList(DispatchPipeNetworkMonitoringPoints dispatchPipeNetworkMonitoringPoints)
    {
        return dispatchPipeNetworkMonitoringPointsMapper.selectDispatchPipeNetworkMonitoringPointsList(dispatchPipeNetworkMonitoringPoints);
    }

    /**
     * 新增管网监测点信息
     * 
     * @param dispatchPipeNetworkMonitoringPoints 管网监测点信息
     * @return 结果
     */
    @AutoFill(operation = AutoFillType.INSERT)
    @Override
    public int insertDispatchPipeNetworkMonitoringPoints(DispatchPipeNetworkMonitoringPoints dispatchPipeNetworkMonitoringPoints)
    {
        return dispatchPipeNetworkMonitoringPointsMapper.insertDispatchPipeNetworkMonitoringPoints(dispatchPipeNetworkMonitoringPoints);
    }

    /**
     * 修改管网监测点信息
     * 
     * @param dispatchPipeNetworkMonitoringPoints 管网监测点信息
     * @return 结果
     */
    @AutoFill(operation = AutoFillType.UPDATE)
    @Override
    public int updateDispatchPipeNetworkMonitoringPoints(DispatchPipeNetworkMonitoringPoints dispatchPipeNetworkMonitoringPoints)
    {
        return dispatchPipeNetworkMonitoringPointsMapper.updateDispatchPipeNetworkMonitoringPoints(dispatchPipeNetworkMonitoringPoints);
    }

    /**
     * 批量删除管网监测点信息
     * 
     * @param pipeNetworkMonitoringPointsIds 需要删除的管网监测点信息主键
     * @return 结果
     */
    @Override
    public int deleteDispatchPipeNetworkMonitoringPointsByPipeNetworkMonitoringPointsIds(Long[] pipeNetworkMonitoringPointsIds)
    {
        return dispatchPipeNetworkMonitoringPointsMapper.deleteDispatchPipeNetworkMonitoringPointsByPipeNetworkMonitoringPointsIds(pipeNetworkMonitoringPointsIds);
    }

    /**
     * 删除管网监测点信息信息
     * 
     * @param pipeNetworkMonitoringPointsId 管网监测点信息主键
     * @return 结果
     */
    @Override
    public int deleteDispatchPipeNetworkMonitoringPointsByPipeNetworkMonitoringPointsId(Long pipeNetworkMonitoringPointsId)
    {
        return dispatchPipeNetworkMonitoringPointsMapper.deleteDispatchPipeNetworkMonitoringPointsByPipeNetworkMonitoringPointsId(pipeNetworkMonitoringPointsId);
    }
}
